/*		Filename: 	card_info.h
 *		Author:		彭望
 *		Date:		2012-01-10
 *		Use:		定义卡对象
 */

#ifndef CARD_INFO_H
#define CARD_INFO_H

#include <string>
#include <boost/date_time/posix_time/posix_time.hpp>
using std::string;
using boost::posix_time::ptime;

class CCardInfo
{
		public:
				enum CardStatus_t{
						STATUS_NOT_USED		=		0,
						STATUS_IN_USE		=		1,
						STATUS_CANCELED		=		2
				};
		public:
				void set_id(const string& );
				string get_id() const;

				void set_cardId(const string& );
				string get_cardId() const;

				void set_password(const string& );
				string get_password() const;

				void set_status(CardStatus_t );
				CardStatus_t get_status() const;

				void set_startTime(const ptime& );
				ptime get_startTime() const;

				void set_endTime(const ptime& );
				ptime get_endTime() const;

				void set_balance(double );
				double get_balance() const;

				void set_memo(const string& );
				string get_memo() const;

		private:
			string m_id;
			string m_cardId;
			string m_cardPasswd;
			CardStatus_t m_status;
			ptime m_startTime;
			ptime m_endTime;
			double m_balance;
			string m_memo;
};

#endif


